<include file="public@header" />

</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Office/approval')}">审批管理</a></li>
			<li class="active"><a href="{:url('Office/approvaladd')}">去审批</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form" action="{:url('Office/approvaladd_post')}" method="post" enctype="multipart/form-data">
            <fieldset>
				<div class="p_title">
					<span class="span_title">表单内容</span>
				</div>
				<input type="hidden" id="detail_type" value="{$detail_type}">
				<div class="control-group1-p" style="padding-bottom: 20px;">
					<!--<if condition="$detail_type eq 1"> 物料申购-->
						<table class="table table-hover table-bordered">
							<thead>
							<tr>
								<th align="left" width="5%">ID</th>
								<th align="left" width="8%">编号</th>
								<th align="left" width="10%">物料名称</th>
								<th align="left" width="5%">价格</th>
								<th align="left" width="5%">单位</th>
								<th align="left" width="8%">税金</th>
								<th align="left" width="8%">数量</th>
								<th align="left" width="8%">金额</th>
								<th align="left" width="10%">所属库房</th>
								<th align="left" width="8%">库存量</th>
							</tr>
							</thead>
							<tbody>
							<foreach name="resultslist" item="vo">
								<tr>
									<td>{$vo.am_id}</td>
									<td>
										{$vo.goods_num}
									</td>
									<td>{$vo.goods_name}</td>
									<td>{$vo.price}</td>
									<td>{$vo.price_unit}</td>
									<td>{$vo.tax_money}</td>
									<td>{$vo.num}</td>
									<td>{$vo.total_price}</td>
									<td>{$vo.room_name}</td>
									<td>{$vo.stock}</td>

								</tr>
							</foreach>
							</tbody>
						</table>
					<!--<elseif condition="$detail_type eq 2" /> 发起项目-->
					<div class="control-group1-p">
						<div class="control-group1">
							<label class="control-label">项目名称</label>
							<div class="controls">
								<input  type="text" class="form-control" name="pro_name" value="{$pro_name}" readonly/>
								<span class="form-required">*</span>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">项目类型</label>
							<div class="controls">
								<select name="pro_type" class="form-control" readonly="">
									<option value='1'<if condition="'1' eq $pro_type">selected</if>>土建土方类</option>
									<option value="2"<if condition="'2' eq $pro_type">selected</if>>装饰安装类</option>
									<option value="3"<if condition="'3' eq $pro_type">selected</if>>建筑结构类</option>
									<option value="4"<if condition="'4' eq $pro_type">selected</if>>绿化养护类</option>
									<option value="5"<if condition="'5' eq $pro_type">selected</if>>水电暖通类</option>
									<option value="6"<if condition="'6' eq $pro_type">selected</if>>智能弱电类</option>
									<option value="7"<if condition="'7' eq $pro_type">selected</if>>道路桥梁类</option>
									<option value="8"<if condition="'8' eq $pro_type">selected</if>>管沟架线类</option>
									<option value="9"<if condition="'9' eq $pro_type">selected</if>>消防水利类</option>
									<option value="10"<if condition="'10' eq $pro_type">selected</if>>加工制作类</option>
									<option value="11"<if condition="'11' eq $pro_type">selected</if>>维修保养累</option>
									<option value="12"<if condition="'12' eq $pro_type">selected</if>>其他类</option>
								</select>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">具体位置</label>
							<div class="controls">
								<input  type="text" class="form-control" name="position" value="{$position}" readonly/>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">计划开工时间</label>
							<div class="controls">
								<input  type="text" class="form-control js-date"  name="plan_time" value="{$plan_time}" readonly/>
								<span class="form-required">*</span>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">计划竣工时间</label>
							<div class="controls">
								<input  type="text" class="form-control js-date" name="completion_time" value="{$completion_time}" readonly/>
								<span class="form-required">*</span>
							</div>
						</div>
						<div class="control-group1" style="width:50%;">
							<label class="control-label">施工内容</label>
							<div class="controls">
								<input  type="text" class="form-control" name="project_name" value="{$project_name}" readonly>
								<input  type="text" class="form-control" name="quantity" value="{$quantity}" readonly style="width:100px"/>
								<input  type="text" class="form-control" name="unit" value="{$unit}" readonly style="width:100px"/>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">预算造价</label>
							<div class="controls">
								<input  type="text" class="form-control" name="budget_cost" value="{$budget_cost}" readonly/>
								<span class="form-required">*</span>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">施工方</label>
							<div class="controls">
								<input  type="text" class="form-control" name="construction_side" value="{$construction_side}" readonly/>
								<span class="form-required">*</span>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">负责人</label>
							<div class="controls">
								<input  type="text" class="form-control" name="principal" value="{$principal}" readonly/>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">施工负责人</label>
							<div class="controls">
								<input  type="text" class="form-control" name="construction_peo" value="{$construction_peo}" readonly/>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">联系电话</label>
							<div class="controls">
								<input  type="text" class="form-control" name="tel" value="{$tel}" readonly/>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">联系地址</label>
							<div class="controls">
								<input  type="text" class="form-control" name="address" value="{$address}" readonly/>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">合同上传</label>
							<div class="col-md-8">
								<input type="text" class="form-control" name="contract_upload" id="contract_upload" value="{$contract_upload}" readonly>
								<php>$file_url=cmf_get_file_download_url(isset($contract_upload)?$contract_upload:'');</php>
								<a href="{$file_url}" class="btn btn-primary">下载</a>
							</div>
						</div>

						<div class="control-group1 normal" style="width: 50%">
							<label class="control-label">项目简介</label>
							<div class="controls">
								<textarea class="form-control" name="project_introduction"  readonly>{$project_introduction}</textarea>
								<span class="form-required">*</span>
							</div>
						</div>
						<div class="control-group1 normal">
							<label class="control-label">备注</label>
							<div class="controls">
								<input  type="text" class="form-control" name="remarks" value="{$remarks}" readonly/>
							</div>
						</div>
						<div class="control-group1 normal">
							<label class="control-label">项目创建人</label>
							<div class="controls">
								<input  type="text" class="form-control" name="remarks"  readonly value="{$user_nickname}"/>
							</div>
						</div>
						<div class="control-group1 normal" style="width: 50%">
							<label class="control-label">创建时间</label>
							<div class="controls">
								<input  type="text" class="form-control" name="remarks" readonly value="{$creat_time}"/>
							</div>
						</div>
					</div>
					<!--<elseif condition="$detail_type eq 3" /> 迁墓业务-->
						<div class="p_title" style="margin-top: -10px;">
							<span class="span_title">客户概览</span>
						</div>

						<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;padding-bottom:15px;margin:0 20px;overflow:hidden; overflow-x:auto;">
						<div class="control-group1">
							<label class="control-label">客户姓名</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.buyer_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">持证类型</label>
							<div class="controls">
								<input type="text" class="form-control" value="{:cart_type('cart',$result.cart_type)}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">证件号码</label>
							<div class="controls">
								<input type="text" class="form-control" style="width:190px;" value="{$result.customer_account}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">联系电话</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.buyer_phone}" disabled>
							</div>
						</div>
						<div class="control-group1" >
							<label class="control-label">联系地址</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.customer_address}" style="width:300px;" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">合同编号</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.contract_sn}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">购买日期</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.gm_start_time}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">打证日期</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.dz_start_time}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">保修状态</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.bxq_status}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">当前状态</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.col_status_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">维护期</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.whq_status}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">墓位编号</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.tomb_num}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">具体位置</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.tomb_region}{$result.tomb_address}" disabled>
								<input type="hidden" class="form-control" value="{$result.tomb_region}{$result.tomb_address}" name="tomb_address">
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">墓穴规制</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.tomb_regulation_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">收敛形式</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.convergence}" disabled>
							</div>
						</div>
						<div class="p_title">
							<span class="span_title">迁出逝者</span>
						</div>

						<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;padding-bottom:15px;margin:0 20px;overflow:hidden; overflow-x:auto;">
							<table class="table table-hover table-bordered">
								<thead>
								<tr>

									<th width="12%">逝者姓名</th>
									<th width="10%">性别</th>
									<th width="20%">生卒日期</th>
									<th width="12%">落葬时间</th>
									<th width="12%">收敛形式</th>
									<th  width="12%">落葬类别</th>
									<th width="10%">与持证人关系</th>
									<th width="10%">火化证明</th>
								</tr>
								</thead>
								<tbody>
								<foreach name="deceased_list" item="vo">
									<tr>

										<td>
											<input type="hidden" class="form-control" name="order_id" value="{$result.order_id}">
											<input type="hidden" class="form-control" name="customer_id" value="{$result.customer_id}">
											<input type="hidden" class="form-control" name="tomb_id" value="{$result.tomb_id}">
											<input type="hidden" class="form-control" name="tomb_num" value="{$result.tomb_num}">

											{$vo['deceased_name']|default=''}
										</td>
										<td>
											<if condition="'1' eq $vo.gender">
												男
											</if>
											<if condition="'2' eq $vo.gender">
												女
											</if>
											</select>
										</td>
										<td>
											{$vo['date_birth']|default=''} ~ {$vo['date_death']|default=''}
										</td>
										<td>
											{$vo['date_death']|default=''}
										</td>
										<td>
											<if condition="'1' eq $vo.convergence_type">
												骨灰
											</if>
											<if condition="'2' eq $vo.convergence_type">
												骨殖
											</if>
										</td>
										<td>
											<if condition="'1' eq $vo.type">
												首位安葬
											</if>
											<if condition="'2' eq $vo.type">
												合葬
											</if>
										</td>
										<td>{$vo.relationship_users|default=''}</td>
										<td>

											<img height="50" src="{$vo.cremation_certificate}" style="height:36px;width: 36px;"
												 onclick="parent.imagePreviewDialog(this.src);">

										</td>
									</tr>
								</foreach>

								</tbody>
							</table>
						</div>

						<div class="p_title">
							<span class="span_title">迁墓资料</span>
						</div>
						<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;padding-bottom:15px;margin:0 20px;overflow:hidden; overflow-x:auto;">

							<table class="table table-hover table-bordered">
								<thead>
								<tr>
									<th>持证人身份证</th>
									<th>墓穴使用合同</th>
									<th>墓穴安葬证</th>
									<th>购买凭证</th>
									<th>迁墓合同</th>
								</tr>
								</thead>
								<tbody>
								<tr>
									<td>
										<php>$img_urls=cmf_get_image_preview_url(isset($service['url_idcard'])?$service['url_idcard']:'');</php>
										<img height="50" src="{$img_urls}" class="preview" id="url_idcard-preview" onclick="parent.imagePreviewDialog(this.src);"/>
									</td>
									<td>
										<php>$img_urls1=cmf_get_image_preview_url(isset($service['url_contract'])?$service['url_contract']:'');</php>
										<img height="50" src="{$img_urls1}" class="preview" id="url_contract-preview" onclick="parent.imagePreviewDialog(this.src);"/>
									</td>
									<td>
										<php>$img_urls2=cmf_get_image_preview_url(isset($service['url_burial'])?$service['url_burial']:'');</php>
										<img height="50" src="{$img_urls2}" class="preview" id="url_burial-preview" onclick="parent.imagePreviewDialog(this.src);"/>
									</td>
									<td>
										<php>$img_urls3=cmf_get_image_preview_url(isset($service['url_buy'])?$service['url_buy']:'');</php>
										<img height="50" src="{$img_urls3}" class="preview" id="url_buy-preview" onclick="parent.imagePreviewDialog(this.src);"/>
									</td>
									<td>
										<php>$img_urls4=cmf_get_image_preview_url(isset($service['url_move'])?$service['url_move']:'');</php>
										<img height="50" src="{$img_urls4}" class="preview" id="url_move-preview" onclick="parent.imagePreviewDialog(this.src);"/>
									</td>
								</tr>
								</tbody>
							</table>

						</div>
						<div class="p_title">
							<span class="span_title">迁墓人信息</span>
						</div>
						<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;padding-bottom:15px;margin:0 20px;overflow:hidden; overflow-x:auto;">
							<table class="table table-hover table-bordered">
								<thead>
								<tr>
									<th  width="10%">持证人</th>
									<th width="6%">性别</th>
									<th width="10%">手机号码</th>
									<th width="15%">联系地址</th>
									<th width="10%">迁墓原因</th>
									<th width="10%">预约迁墓时间</th>
									<th width="10%">原碑处置方案</th>
									<th width="8%">迁墓费</th>
									<th width="8%">接待人</th>
									<th width="10%">经办人</th>
								</tr>
								</thead>
								<tbody>
								<tr>
									<td>{$service['buyer_name']|default=''}</td>
									<td>
										<select name="buyer_sex" class="form-control" disabled>
											<if condition="isset($service['buyer_sex']) ">
												<option value='1'<if condition="'1' eq $service['buyer_sex']">selected</if>>男</option>
												<option value="2" <if condition="'2' eq $service['buyer_sex']">selected</if>>女</option>
												<else>
													<option value='1'>男</option>
													<option value="2">女</option>
												</else>
											</if>

										</select>
									</td>
									<input type="hidden" class="form-control" name="service_id" value="{$service.id|default=''}">

									<td><input type="text" class="form-control" name="buyer_phone" id="buyer_phone" value="{$service['buyer_phone']|default=''}" style="width: 120px;" disabled></td>

									<td><input type="text" class="form-control"  required name="buyer_address" id="buyer_address" value="{$service['buyer_address']|default=''}" disabled></td>
									<td>
										<if condition="isset($service['move_reason'])">
											<select class="form-control" name="move_reason" disabled>
												<option value='更换墓位'<if condition="'更换墓位' eq $service['move_reason']">selected</if>>更换墓位</option>
												<option value="回老家"<if condition="'回老家' eq $service['move_reason']">selected</if>>回老家</option>
												<option value="更换墓园"<if condition="'更换墓园' eq $service['move_reason']">selected</if>>更换墓园</option>
												<option value="其他"<if condition="'其他' eq $service['move_reason']">selected</if>>其他</option>
											</select>

											<else>
												<select class="form-control" name="move_reason">
													<option value="更换墓位">更换墓位</option>
													<option value="回老家">回老家</option>
													<option value="更换墓园">更换墓园</option>
													<option value="其他">其他</option>
												</select>
											</else>
										</if>

									</td>
									<td>
										<input type="text" class="form-control js-datetime"  style="width: 150px;" name="move_time" id="move_time" value="{$service['move_time']|default=''}" disabled >
									</td>
									<td>
										<if condition="isset($service['tombstone_plan'])">
											<select class="form-control" name="tombstone_plan" disabled>
												<option value="破碎"<if condition="'破碎' eq $service['tombstone_plan']">selected</if>>破碎</option>
												<option value="带回"<if condition="'带回' eq $service['tombstone_plan']">selected</if>>带回</option>
												<option value="放弃"<if condition="'放弃' eq $service['tombstone_plan']">selected</if>>放弃</option>
											</select>
											<else>
												<select class="form-control" name="tombstone_plan">
													<option value="破碎">破碎</option>
													<option value="带回">带回</option>
													<option value="放弃">放弃</option>
												</select>
											</else>
										</if>

									</td>
									<td>
										<input type="text" class="form-control" style="width: 80px;"  value="{$service['move_money']}" disabled>
									</td>
									<td>
										{$service.department_name}-{$service.user_nickname}
									</td>
									<td>
										<input type="text" class="form-control" style="width: 120px;"  value="{:cmf_get_admin_name()}" disabled>
										<input type="hidden" class="form-control" style="width: 120px;" name="handle_name" value="{:cmf_get_admin_name()}">
										<input type="hidden" class="form-control" style="width: 120px;" name="handle_id" value="{$handle_id|default=''}" >
										<input type="hidden" class="form-control" name="tomb_id" value="{$service.tomb_id}">
										<input type="hidden" class="form-control" name="tomb_num" value="{$service.tomb_num}">
										<input type="hidden" class="form-control" name="move_money" value="{$service.move_money}">
									</td>
								</tr>
								</tbody>
							</table>

						</div>
					</div>
					<!--<elseif condition="$detail_type eq 4" /> 退墓业务-->
					<div class="div_title"><span>客户概览</span></div>
					<div class="control-group1-p div_content">
						<div class="control-group1">
							<label class="control-label">客户姓名</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.buyer_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">持证类型</label>
							<div class="controls">
								<input type="text" class="form-control" value="{:cart_type('cart',$result.cart_type)}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">证件号码</label>
							<div class="controls">
								<input type="text" class="form-control" style="width:150px;" value="{$result.customer_account}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">联系电话</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.buyer_phone}" disabled>
							</div>
						</div>
						<div class="control-group1" style="width:40%;">
							<label class="control-label">联系地址</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.customer_address}" style="width:80%;" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">合同编号</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.contract_sn}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">购买日期</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.gm_start_time}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">打证日期</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.dz_start_time}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">保修状态</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.bxq_status}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">当前状态</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.col_status_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">维护期</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.whq_status}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">墓位编号</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.tomb_num}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">具体位置</label>
							<div class="controls">
								<input type="text" class="form-control" style="width:150px;" value="{$result.tomb_region}{$result.tomb_address}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">墓穴规制</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.tomb_regulation_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">零售价格</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.selling_price}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">优惠比例</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.tomb_regulation_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">免零金额</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.selling_price}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label"><font color="red">成交价格</font></label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.closing_price}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">收款人</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$pay_real_name|default=''}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">导购员</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.shoppingguide}" disabled>
							</div>
						</div>
						<div class="control-group1" style="width:18%">
							<label class="control-label" style="width:90px;">代理商/业务员</label>
							<div class="controls" style="margin-left:100px;">
								<input type="text" class="form-control" value="{$result.agent_user}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">抵顶人</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.reacher}" disabled>
							</div>
						</div>
						<!---tab页-->
						<ul class="nav_tabs">
							<li class="active"><a href="javascript:">退墓信息</a></li>
						</ul>
						<div class="control-group1-p nav_content">
							<div class="content_nav feature_1" >
								<div class="p_title">
									<span class="span_title">手续回收</span>
								</div>
								<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
									<table class="table table-hover table-bordered">
										<thead>
										<tr>
											<th>持证人</th>
											<th>性别</th>
											<th>手机号码</th>
											<th>联系地址</th>
											<th>身份证</th>
											<th >付款凭证</th>
											<th>墓穴使用合同</th>
											<th>墓穴安葬证</th>
										</tr>
										</thead>
										<tbody>
										<tr>
											<td><input type="text" class="form-control" disabled value="{$result.buyer_name|default=''}"></td>
											<td><select name="deceased[certificate_sex]" class="form-control" disabled>
												<option value="1" <if condition="1 eq  $retreat['certificate_sex'] ">selected </if>>男</option>
												<option value="2" <if condition="2 eq  $retreat['certificate_sex'] ">selected </if>>女</option>
											</select>
											</td>
											<td><input type="text" class="form-control"  disabled value="{$result.buyer_phone|default=''}"></td>

											<td><input type="text" class="form-control" disabled value="{$result.buyer_address|default=''}"></td>
											<td>
												<php>$img_urls1=cmf_get_image_preview_url(isset($retreat['cart_file'])?$retreat['cart_file']:'');</php>
												<img height="50" src="{$img_urls1}" class="preview"  onclick="parent.imagePreviewDialog(this.src);"/>

											</td>
											<td>
												<php>$img_p=cmf_get_image_preview_url(isset($retreat['pay_file'])?$retreat['pay_file']:'');</php>
												<img height="50" src="{$img_p}" id="pay_file-preview" onclick="parent.imagePreviewDialog(this.src);" style="cursor: hand"/>

											</td>
											<td>
												<php>$img_ht=cmf_get_image_preview_url(isset($retreat['ht_file'])?$retreat['ht_file']:'');</php>
												<img src="{$img_ht}" id="ht_file-preview" width="50" style="cursor: hand"/>
											</td>
											<td>
												<php>$img_az=cmf_get_image_preview_url(isset($retreat['az_file'])?$retreat['az_file']:'');</php>
												<img src="{$img_az}" id="az_file-preview" width="50" style="cursor: hand"/>
											</td>
										</tr>
										</tbody>
									</table>
								</div>
								<div class="p_title">
									<span class="span_title">退墓详情</span>
								</div>
								<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
									<table class="table table-hover table-bordered">
										<thead>
										<tr>
											<th style="width:25%;">退墓原因</th>
											<th>成交价格</th>
											<th>折损比例</th>
											<th>实退金额</th>
											<th>退款方式</th>
											<th >原件回收</th>
											<th >经办人</th>
											<th>办理时间</th>
										</tr>
										</thead>
										<tbody>
										<tr>
											<td><select name="tmxq[reason_info]" style="width:250px;"   class="form-control" disabled>
												<option value="">选择退墓原因</option>
												<foreach name="refund_reason" item="vo">
													<option value="{$vo}" <if condition="$vo eq  $retreat['reason_info'] ">selected </if>>{$vo}</option>
												</foreach>
											</select>
											</td>
											<td><input type="text" class="form-control closing_price"  value="{$retreat.closing_price}"></td>
											<td><select name="tmxq[loss_ratio]" class="form-control loss_ratio" disabled>
												<for start="0" end="110" step="10" >
													<option value="0" >0%</option>
													<option value="0.3" <if condition="'0.3' eq $retreat['loss_ratio'] ">selected </if>>30%</option>
													<option value="0.7" <if condition="'0.7' eq $retreat['loss_ratio'] ">selected </if>>70%</option>
												</for>
											</select>
											</td>
											<td><input type="text" class="form-control refund_amount" disabled value="{$retreat.refund_amount|default=''}"></td>
											<td>
												<select name="tmxq[refund_type]" class="form-control" disabled>
													<foreach name="pay_type" item="vo">
															<option value="{$key}" <if condition="$key eq $retreat['refund_type']">selected </if>>{$vo}</option>
													</foreach>
												</select>
											</td>
											<td><if condition="1 eq $retreat['is_recycle']">已回收 </if>
											</td>
											<td><input type="text" class="form-control" name="handle_user" value="{:cmf_get_admin_name()}" disabled></td>
											<td><input type="text" class="form-control js-date" name="add_time" value="{:unixtime_to_date($retreat.add_time)}" autocomplete="off"></td>
										</tr>
										</tbody>
									</table>
								</div>
								<div class="form-actions">
									<input type="hidden" name="id"  value="{$retreat.approval_id|default=''}">
									<input type="hidden" name="approval_id"  value="{$retreat.approval_id|default=''}">
									<input type="hidden" name="otype" id="otype" value="0">
									<input type="hidden" name="order_id" value="{$retreat.order_id|default=''}">
									<input type="hidden" name="mw_id" value="{$retreat.tomb_id|default=''}">
									<input type="hidden" name="mw_num" value="{$retreat.tomb_num|default=''}">
								</div>
							</div >
						</div>
					</div>
					<!--<elseif condition="$detail_type eq 5 || $detail_type eq 6" /> 证件变更、挂失-->

					<div class="div_title"><span>客户概览</span></div>
					<div class="control-group1-p div_content">
						<div class="control-group1">
							<label class="control-label">客户姓名</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.buyer_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">持证类型</label>
							<div class="controls">
								<input type="text" class="form-control" value="{:cart_type('cart',$result.cart_type)}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">证件号码</label>
							<div class="controls">
								<input type="text" class="form-control" style="width:150px;" value="{$result.customer_account}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">联系电话</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.buyer_phone}" disabled>
							</div>
						</div>
						<div class="control-group1" style="width:40%;">
							<label class="control-label">联系地址</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.customer_address}" style="width:80%;" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">合同编号</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.contract_sn}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">购买日期</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.gm_start_time}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">打证日期</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.dz_start_time}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">保修状态</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.bxq_status}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">当前状态</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.col_status_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">维护期</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.whq_status}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">墓位编号</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.tomb_num}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">具体位置</label>
							<div class="controls">
								<input type="text" class="form-control" style="width:150px;" value="{$result.tomb_region}{$result.tomb_address}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">墓穴规制</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.tomb_regulation_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">零售价格</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.selling_price}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">优惠比例</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.tomb_regulation_name}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">免零金额</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.selling_price}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label"><font color="red">成交价格</font></label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.closing_price}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">收款人</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$pay_real_name|default=''}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">导购员</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.shoppingguide}" disabled>
							</div>
						</div>
						<div class="control-group1" style="width:18%">
							<label class="control-label" style="width:90px;">代理商/业务员</label>
							<div class="controls" style="margin-left:100px;">
								<input type="text" class="form-control" value="{$result.agent_user}" disabled>
							</div>
						</div>
						<div class="control-group1">
							<label class="control-label">抵顶人</label>
							<div class="controls">
								<input type="text" class="form-control" value="{$result.reacher}" disabled>
							</div>
						</div>
						<!--<if condition="$detail_type eq 5" >-->
							<ul class="nav_tabs">
								<li class="active"><a href="javascript:">变更登记</a></li>
							</ul>
							<div class="control-group1-p nav_content">
								<div class="content_nav">
									<div class="p_title">
										<span class="span_title">变更信息</span>
									</div>
									<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
										<table class="table table-hover table-bordered">
											<thead>
											<tr>
												<th>原持证人</th>
												<th>性别</th>
												<th>手机号码</th>
												<th>证件类型</th>
												<th >证件号码</th>
												<th >联系地址</th>
												<th >证件上传</th>
											</tr>
											</thead>
											<tbody>
											<tr>
												<td><input type="text" class="form-control" disabled name="customer[buyer_name]" value="{$change.old_name|default=''}"></td>
												<td>
													<select name="customer[deceased_sex]"disabled class="form-control">
														<option value="男"<if condition=" $change['old_sex'] eq 1"> selected </if>>男</option>
														<option value="女"<if condition=" $change['old_sex'] eq 2"> selected </if>>女</option>
													</select>
												</td>
												<td><input type="text" class="form-control" disabled name="customer[old_phone]" value="{$change.old_phone|default=''}"></td>
												<td>
													<select name="customer[old_cart_type]" disabled class="form-control">
														<option value="1"<if condition=" $change['old_cart_type'] eq 1"> selected </if>>身份证</option>
													</select>
												</td>
												<td><input type="text" class="form-control" disabled name="customer[customer_account]" value="{$change.old_cart_ID|default=''}"></td>
												<td><input type="text" class="form-control" disabled name="customer[old_customer_address]" value="{$change.old_customer_address|default=''}"></td>
												<td>
													<php>$img_urls=cmf_get_image_preview_url(isset($change['old_cart_upload'])?$change['old_cart_upload']:'');</php>
													<img height="50" src="{$img_urls}" style="cursor: hand"/>
												</td>
											</tr>
											</tbody>
										</table>
										<table class="table table-hover table-bordered">
											<thead>
											<tr>
												<th>新持证人</th>
												<th>性别</th>
												<th>手机号码</th>
												<th >证件类型</th>
												<th >证件号码</th>
												<th >联系地址</th>
												<th >证件上传</th>
											</tr>
											</thead>
											<tbody>
											<tr>
												<td><input type="text" class="form-control" disabled name="change[name]" value="{$change['name']}"></td>
												<td>
													<select name="change[sex]" class="form-control" disabled>
														<option value="1"<if condition=" $change['sex'] eq 1"> selected </if>>男</option>
														<option value="2"<if condition=" $change['sex'] eq 2"> selected </if>>女</option>
													</select>
												</td>
												<td><input type="text" class="form-control" name="change[phone]" value="{$change['phone']}"></td>
												<td>
													<select name="change[cart_type]" disabled class="form-control">
														<option value="1"<if condition=" $change['cart_type'] eq 1"> selected </if>>身份证</option>
													</select>
												</td>
												<td><input type="text" class="form-control" name="change[cart_ID]" disabled value="{$change['cart_ID']}"></td>
												<td><input type="text" class="form-control" name="change[customer_address]" disabled value="{$change['customer_address']}"></td>
												<td>
													<php>$img_url=cmf_get_image_preview_url(isset($change['cart_upload'])?$change['cart_upload']:'');</php>
													<img height="50" src="{$img_url}" class="preview" />
												</td>
											</tr>
											</tbody>
										</table>
									</div>
									<div class="p_title">
										<span class="span_title">变更资料</span>
									</div>
									<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
										<table class="table table-hover table-bordered" >
											<thead>
											<tr>
												<th>变更原因</th>
												<th>变更时间</th>
												<th>变更业务表</th>
												<th>墓穴使用合同</th>
												<th>墓穴安葬证</th>
												<th>关系证明</th>
												<th>原件回收作废</th>
												<th>经办人</th>
											</tr>
											</thead>
											<tbody>
											<tr>
												<td>
													<select name="change[change_reason]" disabled class="form-control" style="width:180px;">
														<option value="0"<if condition=" $change['change_reason'] eq 0"> selected </if>>（注册人）已故</option>
														<option value="1"<if condition=" $change['change_reason'] eq 1"> selected </if>>亲属变更</option>
														<option value="2"<if condition=" $change['change_reason'] eq 2"> selected </if>>配偶变更</option>
														<option value="3"<if condition=" $change['change_reason'] eq 3"> selected </if>>子女变更</option>
													</select>
												</td>
												<td><input type="text" class="form-control js-datetime date" disabled name="change[change_time]"value="<php>echo date('Y-m-d H:s', $change['change_time'])</php>"></td>
												<td>
													<php>$img_urls=cmf_get_image_preview_url(isset($change['business_upload'])?$change['business_upload']:'');</php>
													<img height="50" src="{$img_urls}" class="preview" />
												</td>
												<td>
													<php>$img_urls=cmf_get_image_preview_url(isset($change['contract_upload'])?$change['contract_upload']:'');</php>
													<img height="50" src="{$img_urls}" class="preview" />
												</td>
												<td>
													<php>$img_urls=cmf_get_image_preview_url(isset($change['burial_upload'])?$change['burial_upload']:'');</php>
													<img height="50" src="{$img_urls}" class="preview" />
												</td>
												<td>
													<php>$img_urls=cmf_get_image_preview_url(isset($change['relation_upload'])?$change['relation_upload']:'');</php>
													<img height="50" src="{$img_urls}" class="preview" />
												</td>
												<td>
													<if condition="$change.if_recycle eq 1" >
														是
														<else/>
														否
													</if>
												</td>
												<td>
													<input type="text" class="form-control" value="{$change.user_nickname}" disabled>
												</td>
											</tr>
											</tbody>
										</table>
									</div>
								</div>
							</div>
						<!--<elseif condition="$detail_type eq 6" />-->

							<ul class="nav_tabs">
								<li><a href="javascript:">挂失登记</a></li>
							</ul>
							<div class="control-group1-p nav_content">
								<div class="content_nav">
									<div class="p_title">
										<span class="span_title">挂失人信息</span>
									</div>
									<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
										<table class="table table-hover table-bordered">
											<thead>
											<tr>
												<th>挂失人</th>
												<th>性别</th>
												<th>手机号码</th>
												<th>证件类型</th>
												<th>证件号码</th>
												<th>联系地址</th>
												<th>证件上传</th>
											</tr>
											</thead>
											<tbody>
											<tr>
												<td>
													<input type="text" class="form-control" name="loss[name]" value="{$loss['name']}" disabled>
													<input type="hidden" class="form-control" name="tomb_num" value="{$result.tomb_num}">
												</td>
												<td>
													<select name="loss[sex]" class="form-control">
														<option value="1"<if condition=" $loss['sex'] eq 1"> selected </if>>男</option>
														<option value="2"<if condition=" $loss['sex'] eq 2"> selected </if>>女</option>
													</select>
												</td>
												<td><input type="text" class="form-control" name="loss[phone]" value="{$loss['phone']}" disabled></td>
												<td>
													<select name="loss[cart_type]" class="form-control" disabled>
														<option value="1"<if condition=" $loss['cart_type'] eq 1"> selected </if>>身份证</option>
													</select>
												</td>
												<td><input type="text" class="form-control" disabled name="loss[cart_ID]" value="{$loss['cart_ID']}"></td>
												<td><input type="text" class="form-control" disabled name="loss[customer_address]" value="{$loss['customer_address']}"></td>
												<td>
													<php>$img_url=cmf_get_image_preview_url(isset($loss['cart_upload'])?$loss['cart_upload']:'');</php>
													<img height="50" src="{$img_url}" disabled class="preview" id="cart_upload1-preview" />
												</td>
											</tr>
											</tbody>
										</table>
									</div>
									<div class="p_title">
										<span class="span_title">挂失资料</span>
									</div>
									<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
										<table class="table table-hover table-bordered" >
											<thead>
											<tr>
												<th>挂失原因</th>
												<th>挂失时间</th>
												<th>工本费</th>
												<th>挂失业务表</th>
												<th>付款凭证</th>
												<th>关系证明</th>
												<th>登报声明</th>
												<th>经办人</th>
											</tr>
											</thead>
											<tbody>
											<tr>
												<td>
													<select name="loss[change_reason]" style="width:180px;" disabled class="form-control">
														<option value="0"<if condition=" $loss['change_reason'] eq 0"> selected </if>>损毁</option>
														<option value="1"<if condition=" $loss['change_reason'] eq 1"> selected </if>>遗失</option>
													</select>
												</td>
												<td><input type="text" class="form-control js-datetime date" disabled name="loss[change_time]" value="<php>echo date('Y-m-d H:s', $loss['change_time'])</php>"></td>
												<td><input type="text" class="form-control" name="loss[cost]" disabled value="{$loss['cost']}"></td>
												<td>
													<php>$img_urls=cmf_get_image_preview_url(isset($loss['business_upload'])?$loss['business_upload']:'');</php>
													<img height="50" src="{$img_urls}" class="preview" id="business_upload1-preview" />
												</td>
												<td>
													<php>$img_urls=cmf_get_image_preview_url(isset($loss['payment_upload'])?$loss['payment_upload']:'');</php>
													<img height="50" src="{$img_urls}" class="preview" id="payment_upload-preview" />
												</td>
												<td>
													<php>$img_urls=cmf_get_image_preview_url(isset($loss['newspaper_upload'])?$loss['newspaper_upload']:'');</php>
													<img height="50" src="{$img_urls}" class="preview" id="newspaper_upload-preview" />
												</td>
												<td>
													<php>$img_urls=cmf_get_image_preview_url(isset($loss['relation_upload'])?$loss['relation_upload']:'');</php>
													<img height="50" src="{$img_urls}" class="preview" id="relation_upload1-preview" />
												</td>
												<td><input type="text" class="form-control" value="{$loss.user_nickname}" disabled></td>
											</tr>
											</tbody>
										</table>
									</div>
								</div>
							</div>
						<!--</if>-->

					<!--<elseif condition="$detail_type eq 7" /> 寄存-->
						<div class="p_title">
							<span class="span_title">联系人信息</span>
						</div>
						<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
							<table class="table table-hover table-bordered">
								<thead>
								<tr>
									<th>办理人</th>
									<th>性别</th>
									<th>手机号码</th>
									<th>关系</th>
									<th>证件类型</th>
									<th>证件号码</th>
									<th>联系地址</th>
									<th>证件上传</th>
									<th>经办人</th>
								</tr>
								</thead>
								<tbody>
								<tr>
									<td>
										<input type="hidden" class="form-control" name="service_id" value="{$service.id|default=''}">
										<input type="text" class="form-control" class="form-control" disabled  name="buyer_name" value="{$service['dealer_user']|default=''}"></td>
									<td><select name="buyer_sex" class="form-control"  disabled >
										<option value="1" <if condition ="$service.dealer_sex eq 1"> selected</if> >男</option>
										<option value="2" <if condition ="$service.dealer_sex eq 2"> selected</if> >女</option>
									</select>
									</td>
									<td><input type="text" class="form-control" disabled  name="buyer_phone" value="{$service.dealer_phone|default=''}"></td>

									<td><select name="relationship" class="form-control" disabled >
										<option value="本人办" '<if condition="'本人办' eq $service['relationship']">selected</if> >本人办</option>
										<option value="他人代办" <if condition="'他人代办' eq $service['relationship']">selected</if>>他人代办</option>
									</select></td>
									<td><select name="cart_type" class="form-control" disabled >
										<option value="1"  <if condition ="$service.dealer_cart_type eq 1"> selected</if>>身份证</option>
										<option value="2"  <if condition ="$service.dealer_cart_type eq 2"> selected</if>>护照</option>
										<option value="3"  <if condition ="$service.dealer_cart_type eq 3"> selected</if>>军人证</option>
										<option value="4"  <if condition ="$service.dealer_cart_type eq 4"> selected</if>>港澳身份证</option>
									</select></td>
									<td><input type="text" class="form-control" name="cart_num" disabled value="{$service.dealer_cart_num |default=''}"></td>
									<td><input type="text" class="form-control" name="cart_address" disabled  value="{$service.dealer_address |default=''}"></td>
									<td>
										<php>$img_az=cmf_get_image_preview_url(isset($service['url_cart_file'])?$service['url_cart_file']:'');</php>
										<img src="{$img_az}"  onclick="parent.imagePreviewDialog(this.src);"   width="36" style="cursor: hand"/></td>
									<td><input type="text" class="form-control"  value="{:cmf_get_admin_name()}" disabled></td>

								</tr>
								</tbody>
							</table>
						</div>
						<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
							<div class="p_title">
								<span class="span_title">寄存逝者</span>
							</div>
							<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
								<table class="table table-hover table-bordered">
									<thead>
									<tr>
										<th>逝者姓名</th>
										<th>性别</th>
										<th>生卒日期</th>
										<th>寄存时间</th>
										<th>收敛形式</th>
										<th >落葬类别</th>
										<th>与持证人关系</th>
										<th>火化证明</th>
									</tr>
									</thead>
									<tbody>
									<foreach name="deceased_list" item="vo">
										<tr>
											<td>{$vo.deceased_name|default=''}</td>
											<td>
												<!--<if condition="1 eq $vo.gender">-->   男
												<!--<elseif condition="2 eq $vo.gender" />-->女
												<!-- </if>-->
											</td>
											<td>{$vo['date_birth']|default=''} ~ {$vo['date_death']|default=''}</td>
											<td>{:unixtime_to_date($vo['deposit_time'],'Y-m-d')}</td>
											<td>
												<!--<if condition="1 eq $vo.convergence_type">--> 骨灰
												<!--<elseif condition="2 eq $vo.convergence_type" />-->骨殖
												<!-- </if>-->
											</td>
											<td>
												<!--<if condition="1 eq $vo.type">--> 首位安葬
												<!--<elseif condition="2 eq $vo.type" />-->合葬
												<!-- </if>-->
											</td>
											<td>{$vo.relationship_users|default=''}</td>
											<td>
												<img height="50" src="{:cmf_get_image_preview_url($vo.cremation_certificate)}" style="height:36px;width: 36px;"
													 onclick="parent.imagePreviewDialog(this.src);">
											</td>
										</tr>
									</foreach>
									</tbody>
								</table>
							</div>

						</div>
					<!--<elseif condition="$detail_type eq 8" /> 寄存寄出-->
					<div class="p_title">
						<span class="span_title">客户概览</span>
					</div>
					<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
						<fieldset>
							<div class="form-group">
								<label class="control-label" style="width: 78px;">客户姓名</label>
								<div class="col-lg-2" style="width: 12%;">
									<input type="text" class="form-control" name="" value="{$result.buyer_name}" disabled>
								</div>
								<label class="control-label"  style="width: 58px;">持证类型</label>
								<div class="col-lg-2"style="width: 12%;">
									<input type="text" class="form-control" name="" value="{:cart_type('cart',$result.cart_type)}" disabled>
								</div>
								<label class="control-label"  style="width: 58px;">证件号码</label>
								<div class="col-lg-2"style="width: 13%;">
									<input type="text" class="form-control" name="" style="width:100%;" value="{$result.customer_account}" disabled>
								</div>
								<label class="control-label"style="width: 58px;">联系电话</label>
								<div class="col-lg-2"style="width: 12%;">
									<input type="text" class="form-control" name="" value="{$result.buyer_phone}" disabled>
								</div>
<!--									<div class="control-group1" >-->
								<label class="control-label"style="width:58px;">联系地址</label>
								<div class="col-lg-2">
									<input type="text" class="form-control" name="" value="{$result.customer_address}" style="width:80%;" disabled>
								</div>
							</div>
							<div class="form-group">
								<label class="control-label" style="width: 78px;">合同编号</label>
								<div class="col-lg-2"style="width: 12%;">
									<input type="text" class="form-control" name="" value="{$result.contract_sn}" disabled>
								</div>
								<label class="control-label"style="width: 58px;">寄存时间</label>
								<div class="col-lg-2"  style="width: 12%;">
									<input type="text" class="form-control" name="" value="{$result.gm_start_time}" disabled>
								</div>
								<label class="control-label"style="width: 58px;">寄存时长</label>
								<div class="col-lg-2" style="width: 12%;" >
									<input type="text" class="form-control" name="" value="{$result.deposit_storage}年" disabled>
								</div>
								<label class="control-label" style="width: 58px;">到期时间</label>
								<div class="col-lg-2" style="width: 12%;">
									<input type="text" class="form-control" name="" value="{$result.deposit_end_time}" disabled>
								</div>
<!--									<div class="control-group1" style="width:35%;">-->
								<label class="control-label" style="width: 58px">当前状态</label>
								<div class="col-lg-2">
									<input type="text" class="form-control" name="" value="{$result.deposit_status|default=''}" disabled>
								 </div>
							</div>
							<div class="form-group">
								<label class="control-label" style="width: 78px;">格位编号</label>
								<div class="col-lg-2"style="width: 12%;">
									<input type="text" class="form-control" name="" value="{$result.tomb_num}" disabled>
								</div>
								<label class="control-label" style="width: 58px">具体位置</label>
								<div class="col-lg-2" style="width: 12%;">
									<input type="text" class="form-control" name="" style="width:150px;" value="{$result.tomb_region}{$result.tomb_address}" disabled>
								</div>
								<label class="control-label" style="width: 58px">墓穴规制</label>
								<div class="col-lg-2"style="width: 12%;">
									<input type="text" class="form-control" name="" value="{$result.tomb_regulation_name}" disabled>
								</div>
								<label class="control-label"style="width: 58px">寄存情况</label>
								<div class="col-lg-2">
									<input type="text" class="form-control" name="" value="全部寄存" disabled>
								</div>
							</div>
						</fieldset>
						<div class="p_title">
							<span class="span_title">迁出逝者</span>
						</div>
						<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
							<table class="table table-hover table-bordered">
								<thead>
								<tr>
									<th>逝者姓名</th>
									<th>性别</th>
									<th>生卒日期</th>
									<th>寄存时间</th>
									<th>收敛形式</th>
									<th >落葬类别</th>
									<th>与持证人关系</th>
									<th>火化证明</th>
								</tr>
								</thead>
								<tbody>
								<foreach name="deceased_list" item="vo">
									<tr>
										<td>{$vo.deceased_name|default=''}</td>
										<td>
											<!--<if condition="1 eq $vo.gender">-->   男
											<!--<elseif condition="2 eq $vo.gender" />-->女
											<!-- </if>-->
										</td>
										<td>{$vo['date_birth']|default=''} ~ {$vo['date_death']|default=''}</td>
										<td>{:unixtime_to_date($vo['deposit_time'],'Y-m-d')}</td>
										<td>
											<!--<if condition="1 eq $vo.convergence_type">--> 骨灰
											<!--<elseif condition="2 eq $vo.convergence_type" />-->骨殖
											<!-- </if>-->
										</td>
										<td>
											<!--<if condition="1 eq $vo.type">--> 首位安葬
											<!--<elseif condition="2 eq $vo.type" />-->合葬
											<!-- </if>-->
										</td>
										<td>{$vo.relationship_users|default=''}</td>
										<td>
											<img height="50" src="{:cmf_get_image_preview_url($vo.cremation_certificate)}" style="height:36px;width: 36px;"
												 onclick="parent.imagePreviewDialog(this.src);">
										</td>
									</tr>
								</foreach>
								</tbody>
							</table>
						</div>

					</div>

					<div class="p_title">
						<span class="span_title">联系人信息</span>
					</div>
					<div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;margin:0 20px;overflow:hidden; overflow-x:auto;">
						<table class="table table-hover table-bordered">
							<thead>
							<tr>
								<th>办理人</th>
								<th>性别</th>
								<th>手机号码</th>
								<th>关系</th>
								<th>证件类型</th>
								<th>证件号码</th>
								<th>联系地址</th>
								<th>证件上传</th>
								<th>经办人</th>
								<th>回收原证件</th>
							</tr>
							</thead>
							<tbody>
							<tr>
								<td>
									<input type="hidden" class="form-control" name="service_id" value="{$service.id|default=''}">
									<input type="text" class="form-control" class="form-control" disabled  name="buyer_name" value="{$service['dealer_user']|default=''}"></td>
								<td><select name="buyer_sex" class="form-control"  disabled >
									<option value="1" <if condition ="$service.dealer_sex eq 1"> selected</if> >男</option>
									<option value="2" <if condition ="$service.dealer_sex eq 2"> selected</if> >女</option>
								</select>
								</td>
								<td><input type="text" class="form-control" disabled  name="buyer_phone" value="{$service.dealer_phone|default=''}"></td>

								<td><select name="relationship" class="form-control" disabled >
									<option value="本人办" '<if condition="'本人办' eq $service['relationship']">selected</if> >本人办</option>
									<option value="他人代办" <if condition="'他人代办' eq $service['relationship']">selected</if>>他人代办</option>
								</select></td>
								<td><select name="cart_type" class="form-control" disabled >
									<option value="1"  <if condition ="$service.dealer_cart_type eq 1"> selected</if>>身份证</option>
									<option value="2"  <if condition ="$service.dealer_cart_type eq 2"> selected</if>>护照</option>
									<option value="3"  <if condition ="$service.dealer_cart_type eq 3"> selected</if>>军人证</option>
									<option value="4"  <if condition ="$service.dealer_cart_type eq 4"> selected</if>>港澳身份证</option>
								</select></td>
								<td><input type="text" class="form-control" name="cart_num" disabled value="{$service.dealer_cart_num |default=''}"></td>
								<td><input type="text" class="form-control" name="cart_address" disabled  value="{$service.dealer_address |default=''}"></td>
								<td>
									<php>$img_az=cmf_get_image_preview_url(isset($service['url_cart_file'])?$service['url_cart_file']:'');</php>
									<img src="{$img_az}"  onclick="parent.imagePreviewDialog(this.src);"  id="file_cart-preview" width="36" style="cursor: hand"/></td>
								<td><input type="text" class="form-control"  value="{:cmf_get_admin_name()}" disabled></td>
								<td>
									<php>$img_az=cmf_get_image_preview_url(isset($service['url_file_original'])?$service['url_file_original']:'');</php>
									<img src="{$img_az}"  onclick="parent.imagePreviewDialog(this.src);"    width="36" style="cursor: hand"/></td>

								</td>
							</tr>
							</tbody>
						</table>
					</div>
					<!--</if>-->
				</div>
				<div class="p_title">
					<span class="span_title">审批内容</span>
				</div>
				<div class="control-group1-p">
					<div class="control-group1" style="width:30%">
						<label class="control-label">表单类型</label>
						<div class="controls">
						<select name="form_type" class="form-control" readonly>
							<option value='1'<if condition="'1' eq $form_type">selected</if>>物料</option>
							<option value="2" <if condition="'2' eq $form_type">selected</if>>业务</option>
							<option value="3" <if condition="'3' eq $form_type">selected</if>>工程</option>
						</select>
						</div>
					</div>
					<div class="control-group1" style="width:30%">
						<label class="control-label">申请人</label>
						<div class="controls">
							<input type="text" class="form-control" name="" readonly value="{$user_nickname}">
						</div>
					</div>
					<div class="control-group1" style="width:30%">
						<label class="control-label">申请时间</label>

						<div class="controls">
							<input type="text" class="form-control" name="apply_time" readonly value="{$apply_time}">
						</div>
					</div>
					<div class="control-group1" style="width:45%">
						<label class="control-label">审批意见</label>
						<div class="controls">
						<select name="approval_status" class="form-control">
							<option value='2' <if condition="'2' eq $approval_status">selected</if>>同意</option>
							<option value="3" <if condition="'3' eq $approval_status">selected</if>>驳回</option>
						</select>
						</div>
					</div>
					<div class="control-group1" style="width:90%">
						<label class="control-label">意见描述</label>
						<div class="controls">
						<textarea name="approval_desc" cols="100" rows="4">{$approval_desc}</textarea>
						</div>
					</div>
				</div>
				<input type="hidden" name="id" value="{$approval_id|default=''}">
				<input type="hidden" name="approval_user" value="">
				<input type="hidden" name="apply_user" value="{$apply_user}">
				<input type="hidden" name="form_type" value="{$form_type}">
				<input type="hidden" name="detail_type" value="{$detail_type}">
				<input type="hidden" name="form_id" value="{$form_id}">
				<input type="hidden" name="approval_time" value="">
			</fieldset>
			<div class="form-actions">
				<!--<if ($approval_status)==1>-->
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('提交')}</button>
				<!--</if>-->
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>

</body>
<script type="text/javascript">
	$("#page1").load("add.html");
	// $(document).ready(function () {
	// 	var detail_type = $("#detail_type").val();
	//
	// 	if(detail_type == '1'){
	// 		// document.write(page1.import.body.innerHTML);
	// 		$('.showPage').load('add.html');
	// 	}
	// });



</script>
</html>